package server.command;

public class CommandFactory {

	public Command getCommand(CommandEnum command) {
		Command com;

		switch (command.ordinal()) {
			case 0:
				com = Login.getInstance();
				break;
			case 1:
				com = Registration.getInstance();
				break;
			case 2:
				com = Checkpoints.getInstance();
				break;
			case 3:
				com = Quit.getInstance();
				break;
			default:
				com = null;
				break;
		}
		return com;
	}

}
